package com.slipper.system.schedule.front;

import java.util.List;
import com.slipper.common.bo.Result;
import com.slipper.common.util.ResultUtil;
import com.slipper.system.schedule.service.ScheduleLogService;

import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import com.slipper.system.api.schedule.bo.ScheduleLogBO;
import com.slipper.system.api.schedule.service.IScheduleLogSv;

@RestController
public class ScheduleLogSv implements IScheduleLogSv {
    @Resource
    private ScheduleLogService scheduleLogService;
    
    @Override
    public Result<ScheduleLogBO> queryBy(ScheduleLogBO bo){
        return ResultUtil.successResult(scheduleLogService.queryBy(bo));
    }
    
    @Override
    public Result<List<ScheduleLogBO>> queryPage(ScheduleLogBO bo){
        return ResultUtil.successResult(scheduleLogService.queryPage(bo));
    }
    
    @Override
    public Result<ScheduleLogBO> save(ScheduleLogBO bo){
        return ResultUtil.successResult(scheduleLogService.save(bo));
    }
    
    @Override
    public Result<?> delete(ScheduleLogBO bo){
        return ResultUtil.deleteResult(scheduleLogService.delete(bo));
    }

    @Override
    public Result<Boolean> isRunning(ScheduleLogBO bo) {
        return ResultUtil.successResult(scheduleLogService.isRunning(bo));
    }
}
